<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:security="http://www.springframework.org/security/tags"
                template="/templates/template.xhtml">
    <ui:define name="title">甲方标签库</ui:define>
    <ui:define name="content">
        <h:form id="productInfoForm" enctype="multipart/form-data">
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="编辑" icon="fa fa-edit"
                                         actionListener="#{firstPartyTagInfoBean.changeStatusToEdit}"
                                         process="@this"
                                         update="@form"
                                         rendered="#{firstPartyTagInfoBean.isView() and security:areAllGranted('LOAN_FAMILY_TAGS_FIRST_PARTY_EDIT')}"/>
                        <p:commandButton value="保存" icon="fa fa-save"
                                         actionListener="#{firstPartyTagInfoBean.onSave}"
                                         rendered="#{firstPartyTagInfoBean.isNotView() and security:areAnyGranted('LOAN_FAMILY_TAGS_FIRST_PARTY_EDIT,LOAN_FAMILY_TAGS_FIRST_PARTY_ADD')}"
                                         update="@form"/>
                        <p:commandButton value="取消" icon="fa fa-reply"
                                         actionListener="#{firstPartyTagInfoBean.changeStatusToView}"
                                         rendered="#{firstPartyTagInfoBean.isEdit()}"
                                         process="@this"
                                         update="@form"/>
                        <p:button value="返回" icon="fa fa-reply-all" href="#{currentUserBean.back}"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">
                <div class="ui-g-12">
                    <div class="card">
                        <p:tabView id="tabView" scrollable="true">
                            <p:ajax event="tabChange"/>
                            <p:tab title="基本信息配置">
                                <ui:include src="basic-info.xhtml"/>
                            </p:tab>
                            <!--<p:tab title="准入门槛">-->
                                <!--<ui:include src="threshold.xhtml"/>-->
                            <!--</p:tab>-->
                            <p:tab title="营销信息配置">
                                <ui:include src="activity-info.xhtml"/>
                            </p:tab>
                            <p:tab title="贷款说明配置">
                            </p:tab>
                            <p:tab title="风控信息配置">
                                <ui:include src="wind-ctrl.xhtml"/>
                            </p:tab>
                            <!--<p:tab title="广告位配置">-->
                                <!--<ui:include src="loan-space.xhtml"/>-->
                            <!--</p:tab>-->
                        </p:tabView>
                    </div>
                </div>
            </div>
            <ui:include src="tongdun-manyheadinfo-dialog.xhtml"/>
        </h:form>
    </ui:define>
</ui:composition>